package academic.ui.client.view;

import ui.client.GenericContainerTag;

import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewImpl;

public class PageScrollView extends ViewImpl {

	GenericContainerTag wizard = new GenericContainerTag("div");
	GenericContainerTag pages = new GenericContainerTag("div");
	GenericContainerTag back = new GenericContainerTag("a","Previous");
	GenericContainerTag next = new GenericContainerTag("a","Next");
	GenericContainerTag div = new GenericContainerTag("div");
	
	public PageScrollView() {
		back.setStyleName("prev");
		next.setStyleName("next");
		wizard.getElement().setId("wizard");
		pages.setStyleName("items");
		div.setStyleName("scrollDiv");
		
		wizard.add(pages);
		div.add(wizard);
		div.add(back);
		div.add(next);
	}
	
	@Override
	public Widget asWidget() {
		return div;
	}
}
